package com.zdp.provider;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.feign.EnableFeignClients;
import org.springframework.cloud.netflix.hystrix.EnableHystrix;
import tk.mybatis.spring.annotation.MapperScan;

/**
 * 类描述: Teacher服务  即消费服务 又提供服务
 *
 * @author ZhhengDP
 * @since 2021/8/13
 */
/**
 * 使用 @EnableCircuitBreaker 开启 Hystrix容错保护
 * */
@EnableHystrix
@EnableDiscoveryClient
@SpringBootApplication
@MapperScan(value = "com.zdp.provider")
public class TeacherApplication {
    public static void main(String[] args) {
        SpringApplication.run(TeacherApplication.class,args);
    }
}
